package com.mxpio.webapp.service;

import com.mxpio.webapp.entity.MonitorSsh;
import com.mxpio.webapp.entity.MonitorTcp;
import com.mxpioframework.jpa.query.Criteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * ssh信息服务类
 *
 * @author: Cheng
 * @date: 2022/11/13
 */
public interface IMonitorSshService {

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    MonitorSsh selectById(String id);

    /**
     * 分页查询
     *
     * @param criteria
     * @param pageable
     * @return
     */
    Page<MonitorSsh> queryAll(Criteria criteria, Pageable pageable);

    /**
     * 新增
     *
     * @param monitorSsh
     * @return
     */
    MonitorSsh save(MonitorSsh monitorSsh);

    /**
     * 更新
     *
     * @param monitorSsh
     * @return
     */
    MonitorSsh update(MonitorSsh monitorSsh);

    /**
     * 删除
     * @param ids
     */
    void delete(List<String> ids);
}
